package com.example.hrmsaas.company.entity;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.jetbrains.annotations.NotNull;

import java.util.List;


@Setter
@Getter
@NoArgsConstructor
public class DeptListResult {
    private String CompanyId;
    private String CompanyName;
    private String CompanyManage;
    private List<Department> depts;

    public DeptListResult(@NotNull Company company, List depts){

        this.CompanyId = company.getId();
        this.CompanyName = company.getName();
        this.CompanyManage = company.getLegalRepresentative();
        this.depts         = depts;
    }


}
